//
//  KlineSelectView.swift
//  Exchange
//
//  Created by rui on 2018/5/1.
//  Copyright © 2018年 common. All rights reserved.
//

import UIKit

class KlineSelectView: UIView {
    
    typealias ButtonClick = (UIButton)->()
    var buttonClick: ButtonClick?

    func addShadow(shadowOffset: CGSize = .zero) {
        self.layer.shadowOpacity = 0.25
        self.layer.shadowColor = UIColor(hexStr: "#030913").cgColor
        self.layer.shadowOffset = shadowOffset//CGSize(width: 0, height: 3)
        self.layer.shadowRadius = 2
    }
    @IBAction func klineSelect(_ sender: UIButton) {
        buttonClick?(sender)
    }
}
